package io.bba.boot.app.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 采集记录
 *
 * @author zs
 * @since 2024-03-19
 */
@Data
@TableName("crawler_url")
@Schema(description = "采集记录")
public class CrawlerUrl implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "网站名称")
    private String name;

    @Schema(description = "采集的网站 URL")
    private String url;

    @Schema(description = "采集脚本名称")
    private String scriptName;

    @Schema(description = "脚本路径")
    private String scriptUrl;

    @Schema(description = "开始时间")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    private LocalDateTime endTime;

    @Schema(description = "状态：0:不需要采集，1:需要采集")
    private String status;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @Schema(description = "删除标识：默认0 ：未删除，1：删除")
    private Integer deletedFlag;

}

